from flask import Flask
# 配置跨域
from flask_cors import CORS

# 导入蓝图包
from ceshi import tesxt
# 创建实例
app = Flask(__name__)
CORS(app)
# 创造蓝图
app.register_blueprint(tesxt)

# 解决中文乱码
app.config['JSON_AS_ASCII'] = False


@app.route('/')
def hello_world():
    return 'Hello World!'


if __name__ == '__main__':
    app.run(debug=True, host='0.0.0.0', port=5000)
